﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using DAL;
using Common;

namespace UI.system.page.agent
{
    public partial class agentadd : BaseAdmin
    {
        public int id = JobRequest.GetRequestInt("id");
        public AgentInfo info = new AgentInfo();
        public AdminInfo admininfo = new AdminInfo();
        public List<AdminInfo> adminlist = new List<AdminInfo>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (id != 0) {
                info = AgentDAL.FindOneByID(id);
            }
            admininfo = B.MyAdmin;
            adminlist = AdminDAL.FindAllByRole();
        }
    }
}